package file;

import java.io.File;

public class CreateNewFile {
    public static void main(String[] args) throws Exception {
        File file = new File("./test.txt");
        boolean created = file.createNewFile();
        if(created){
            System.out.println("创建成功!");
        }else{
            System.out.println("创建失败!");
        }
    }
}
